﻿using QYmall.Core.Common.Emum;
using QYmall.Core.Common.Helper;
using QYmall.Core.Model.Models;
using QYmall.Core.Model.ViewModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;

namespace QYmall.Core.IServices
{
    /// <summary>
    /// 商户资金日志接口
    /// </summary>
    public interface IMerchantAmountLogService : IBaseService
    {
        /// <summary>
        /// 查询一条记录
        /// </summary>
        Task<MerchantAmountLog?> QueryAsync(Expression<Func<MerchantAmountLog, bool>> funcWhere, WriteRoRead writeAndRead = WriteRoRead.Read);

        /// <summary>
        /// 查询指定数量列表
        /// </summary>
        Task<IEnumerable<MerchantAmountLog>> QueryListAsync(int top, Expression<Func<MerchantAmountLog, bool>> funcWhere,
            string orderBy, WriteRoRead writeAndRead = WriteRoRead.Read);

        /// <summary>
        /// 查询分页列表
        /// </summary>
        Task<PaginationList<MerchantAmountLog>> QueryPageAsync(int pageSize, int pageIndex, Expression<Func<MerchantAmountLog, bool>> funcWhere,
            string orderBy, WriteRoRead writeAndRead = WriteRoRead.Read);

        /// <summary>
        /// 添加记录
        /// </summary>
        Task<MerchantAmountLog> AddAsync(MerchantAmountLogEditDto modelDto, WriteRoRead writeAndRead = WriteRoRead.Write);
    }
}
